home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
PGM_TOOL
/
SMP_PT
/
KEYCODE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-04-02
|
521b
|
28 lines
{comments:
Key codes are very important, they will help you read the extended
keys as well as alt and control key codes.
}
uses crt;
var ch, spec: char;
begin
clrscr;
repeat
writeln;
writeln('Press ESC to quit.');
writeln;
write('Press key to scan: ');
writeln;
ch := readkey;
write(ord(ch),' ');
if ch = #0 then begin
spec := readkey;
write(ord(spec));
{these are special (extended) keys}
end;
until ch = #27;
end.